﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TheFormulaEdit.aspx.cs" Inherits="StoragePeriod.Web.StorageForecast.QualityEstimates.TheFormulaEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>品质估算模型</title>
    <link href="/Styles/MainStyle.css" rel="stylesheet" type="text/css" />
    <link href="/Scripts/artDialog/skins/default.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <style type="text/css">
        <!--
        *{ margin:0; padding:0;}
        body{ font-size:12px; font-family:"Arial", Gadget, sans-serif,"宋体";}
        ul,li,dl,dt,dd{ list-style:none}
        a{ text-decoration:none}
        img{ border:none;}
         
        .TheFormulaMain{width:480px; margin:0px auto; font-size:24px;}
        .TheFormulaMain li{float:left; height:35px; line-height:35px;}
        .Explanation{ width:480px; margin:0px auto; clear:both; height:25px; line-height:25px; padding-top:10px; font-weight:600; color:#f90;}
        
        .txtValue{width:60px;}
        .Square{ position:absolute;top:-10px; font-size:12px;}
        span{ font-size:12px;}
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <!--当前计算公式类型类型-->
        <div style="width:500px; padding-top:10px;">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="right" style="width:80px;">公式类型：</td>
                    <td align="left">
                        <asp:DropDownList ID="Drop_CalculateType" runat="server"  AutoPostBack="true"
                            onselectedindexchanged="Drop_CalculateType_SelectedIndexChanged">
                            <asp:ListItem Value="1" Text="肉与水产公式"></asp:ListItem>
                            <asp:ListItem Value="2" Text="蔬菜失重率公式"></asp:ListItem>
                            <asp:ListItem Value="3" Text="VC含量方程式1"></asp:ListItem>
                            <asp:ListItem Value="4" Text="VC含量方程式2"></asp:ListItem>
                            <%--<asp:ListItem Value="5" Text="VC下降率方程式"></asp:ListItem>--%>
                            <asp:ListItem Value="6" Text="水果失重率"></asp:ListItem>
                            <asp:ListItem Value="7" Text="主观评分速率常数方程式"></asp:ListItem>
                            <asp:ListItem Value="8" Text="水果感官评分"></asp:ListItem>
                            <asp:ListItem Value="9" Text="水果Vc含量"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </div>
        <!--公式1 Y（品质）=M(+|-)te次方((正|负)N/T+Z) -->
        <asp:Panel ID="Pan_1" runat="server">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（<asp:Label ID="lab_QuotaName" runat="server" Text="TVB-N"></asp:Label>）</span>
                            =
                            <asp:TextBox ID="txt_M" runat="server" CssClass="txtValue"></asp:TextBox>
                            <asp:DropDownList ID="drop_Connector" runat="server">
                                <asp:ListItem Value="1" Text="+"></asp:ListItem>
                                <asp:ListItem Value="2" Text="-"></asp:ListItem>
                            </asp:DropDownList>
                            te
                        </li>
                        <li style="position:relative;">
                            <div class="Square" style="width:200px;">
                                <asp:DropDownList ID="drop_IsNegative" runat="server">
                                    <asp:ListItem Value="0" Text="正"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="负"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:TextBox ID="txt_N" runat="server" CssClass="txtValue"></asp:TextBox>
                                /T+
                                <asp:TextBox ID="txt_Z" runat="server" CssClass="txtValue"></asp:TextBox>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) Y:品质指标量</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式2 Y(失重率)=t*exp(M-N/T) -->
        <asp:Panel ID="Pan_2" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（失重率）</span>=t*exp(<asp:TextBox ID="txt_2_M" runat="server" CssClass="txtValue"></asp:TextBox>-<asp:TextBox ID="txt_2_N" runat="server" CssClass="txtValue"></asp:TextBox>/T)
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) Y:失重率</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式3 Y(Vc含量)=M-t*exp(N-Z/T) -->
        <asp:Panel ID="Pan_3" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（Vc含量）</span>
                            =
                            <asp:TextBox ID="txt_3_M" runat="server" CssClass="txtValue"></asp:TextBox>-
                            t*exp(<asp:TextBox ID="txt_3_N" runat="server" CssClass="txtValue"></asp:TextBox>-<asp:TextBox ID="txt_3_Z" runat="server" CssClass="txtValue"></asp:TextBox>/T)
                        </li>
                    </ul>
                </div>
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（Vc下降率）</span>
                            =（<asp:TextBox ID="txt_3_A" runat="server" CssClass="txtValue"></asp:TextBox>-Vc）
                            *100/<asp:TextBox ID="txt_3_B" runat="server" CssClass="txtValue"></asp:TextBox>
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) Y:失重率</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式4 Y(Vc含量)=exp{M-t*exp(N-Z/T)} -->
        <asp:Panel ID="Pan_4" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（Vc含量）</span>
                            =exp{
                            <asp:TextBox ID="txt_4_M" runat="server" CssClass="txtValue"></asp:TextBox>-
                            t*exp(<asp:TextBox ID="txt_4_N" runat="server" CssClass="txtValue"></asp:TextBox>-<asp:TextBox ID="txt_4_Z" runat="server" CssClass="txtValue"></asp:TextBox>/T)}
                        </li>
                    </ul>
                </div>
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（Vc下降率）</span>
                            =（<asp:TextBox ID="txt_4_A" runat="server" CssClass="txtValue"></asp:TextBox>-Vc）
                            *100/<asp:TextBox ID="txt_4_B" runat="server" CssClass="txtValue"></asp:TextBox>
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) Y:失重率</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式5 Y(Vc下降率)=(A-Y(Vc含量))*100/B -->
        <asp:Panel ID="Pan_5" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（Vc下降率）</span>
                            =（<asp:TextBox ID="txt_5_A" runat="server" CssClass="txtValue"></asp:TextBox>-Vc）
                            *100/<asp:TextBox ID="txt_5_B" runat="server" CssClass="txtValue"></asp:TextBox>
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>vc:vc含量 Y:Vc下降率</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式6 C(失重率)=M*10(N次方)*exp(-Z/T)*t -->
        <asp:Panel ID="Pan_6" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            C<span>（失重率）</span>
                            =<asp:TextBox ID="txt_6_M" runat="server" CssClass="txtValue"></asp:TextBox>*10
                        </li>
                        <li style="position:relative;width:60px;">
                            <div class="Square" style="width:60px;">
                                <asp:TextBox ID="txt_6_N" runat="server" CssClass="txtValue"></asp:TextBox>
                            </div>
                        </li>
                        <li>
                            *exp(-<asp:TextBox ID="txt_6_Z" runat="server" CssClass="txtValue"></asp:TextBox>/T)*t
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) C:失重率</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式7 Y(主观评分)=10-t*exp(M-N/T) -->
        <asp:Panel ID="Pan_7" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（主观评分）</span>=10-t*exp(<asp:TextBox ID="txt_7_M" runat="server" CssClass="txtValue"></asp:TextBox>-<asp:TextBox ID="txt_7_N" runat="server" CssClass="txtValue"></asp:TextBox>/T)
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) Y:失重率</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式8 C(感官评分)=10-M*10(N次方)*exp(-Z/T)*t -->
        <asp:Panel ID="Pan_8" runat="server" Visible="false">
            <div style="width:500px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（主观评分）</span>=10-<asp:TextBox ID="txt_8_M" runat="server" CssClass="txtValue"></asp:TextBox>*10
                        </li>
                        <li style="position:relative;width:60px;">
                            <div class="Square" style="width:60px;">
                                <asp:TextBox ID="txt_8_N" runat="server" CssClass="txtValue"></asp:TextBox>
                            </div>
                        </li>
                        <li>
                            *exp(-<asp:TextBox ID="txt_8_Z" runat="server" CssClass="txtValue"></asp:TextBox>/T)*t
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>t:贮存时间(d);T:热力学温度(k) Y:感官评分</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <!--公式9 Y（水果Vc含量）= M*exp(-[N*exp(-Z/T)*t])-->
         <asp:Panel ID="Pan_9" runat="server" Visible="false">
            <div style="width:550px; height:100px;padding-top:40px;">
                <div class="TheFormulaMain" style="width:550px;">
                    <ul>
                        <li>
                            Y<span>（水果Vc含量）</span>=<asp:TextBox ID="txt_9_M" runat="server" CssClass="txtValue"></asp:TextBox>
                            *exp(-[<asp:TextBox ID="txt_9_N" runat="server" CssClass="txtValue"></asp:TextBox>*exp(-<asp:TextBox ID="txt_9_Z" runat="server" CssClass="txtValue"></asp:TextBox>/T)*t])
                        </li>
                    </ul>
                </div>
                <div class="TheFormulaMain">
                    <ul>
                        <li>
                            Y<span>（Vc下降率）</span>
                            =（<asp:TextBox ID="txt_9_A" runat="server" CssClass="txtValue"></asp:TextBox>-Vc）
                            *100/<asp:TextBox ID="txt_9_B" runat="server" CssClass="txtValue"></asp:TextBox>
                        </li>
                    </ul>
                </div>
                <div class="Explanation">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>参数说明：</td>
                        </tr>
                        <tr>
                            <td>C ，为计算的水果现有含量；C0，为水果初始含量，mg/100g；<br />t，为贮存时间，天；T，为贮存温度，K，其中K=273+℃</td>
                        </tr>
                    </table>
                </div>
            </div>
        </asp:Panel>

        <div class="aui_buttons">
            <asp:Button Text="提交" runat="server" CssClass="aui_state_highlight" ID="btPost" OnClick="btPost_Click" />
        </div>
    </form>
</body>
</html>
